package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.OrderGoods;

/**
 * 订单商品关联Mapper接口
 * 
 * @author ruoyi
 * @date 2024-03-22
 */
public interface OrderGoodsMapper 
{
    /**
     * 查询订单商品关联
     * 
     * @param id 订单商品关联主键
     * @return 订单商品关联
     */
    public OrderGoods selectOrderGoodsById(String id);

    /**
     * 查询订单商品关联列表
     * 
     * @param orderGoods 订单商品关联
     * @return 订单商品关联集合
     */
    public List<OrderGoods> selectOrderGoodsList(OrderGoods orderGoods);

    /**
     * 新增订单商品关联
     * 
     * @param orderGoods 订单商品关联
     * @return 结果
     */
    public int insertOrderGoods(OrderGoods orderGoods);

    /**
     * 修改订单商品关联
     * 
     * @param orderGoods 订单商品关联
     * @return 结果
     */
    public int updateOrderGoods(OrderGoods orderGoods);

    /**
     * 删除订单商品关联
     * 
     * @param id 订单商品关联主键
     * @return 结果
     */
    public int deleteOrderGoodsById(String id);

    /**
     * 批量删除订单商品关联
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrderGoodsByIds(String[] ids);
}
